package com.ruoyi.order.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单对象 tb_order
 * 
 * @author ruoyi
 * @date 2023-04-26
 */
public class TbOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单编号 */
    private Long orderId;

    /** 餐桌编号 */
    @Excel(name = "餐桌编号")
    private Long tableId;

    /** 店铺编号 */
    @Excel(name = "店铺编号")
    private Long storeId;

    /** 食客编号 */
    @Excel(name = "食客编号")
    private Long sikgaekId;

    /** 结算编号 */
    @Excel(name = "结算编号")
    private Long settlementId;

    /** 客户优惠券编号 */
    @Excel(name = "客户优惠券编号")
    private Long couponRecordId;

    /** 订单总价 */
    @Excel(name = "订单总价")
    private BigDecimal orderPrice;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private Integer isPay;

    /** 支付渠道 */
    @Excel(name = "支付渠道")
    private Long payType;

    /** 优惠金额 */
    @Excel(name = "优惠金额")
    private BigDecimal concessionsPrice;

    /** 实付金额 */
    @Excel(name = "实付金额")
    private BigDecimal realPrice;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setTableId(Long tableId) 
    {
        this.tableId = tableId;
    }

    public Long getTableId() 
    {
        return tableId;
    }
    public void setStoreId(Long storeId) 
    {
        this.storeId = storeId;
    }

    public Long getStoreId() 
    {
        return storeId;
    }
    public void setSikgaekId(Long sikgaekId) 
    {
        this.sikgaekId = sikgaekId;
    }

    public Long getSikgaekId() 
    {
        return sikgaekId;
    }
    public void setSettlementId(Long settlementId) 
    {
        this.settlementId = settlementId;
    }

    public Long getSettlementId() 
    {
        return settlementId;
    }
    public void setCouponRecordId(Long couponRecordId) 
    {
        this.couponRecordId = couponRecordId;
    }

    public Long getCouponRecordId() 
    {
        return couponRecordId;
    }
    public void setOrderPrice(BigDecimal orderPrice) 
    {
        this.orderPrice = orderPrice;
    }

    public BigDecimal getOrderPrice() 
    {
        return orderPrice;
    }
    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }
    public void setIsPay(Integer isPay) 
    {
        this.isPay = isPay;
    }

    public Integer getIsPay() 
    {
        return isPay;
    }
    public void setPayType(Long payType) 
    {
        this.payType = payType;
    }

    public Long getPayType() 
    {
        return payType;
    }
    public void setConcessionsPrice(BigDecimal concessionsPrice) 
    {
        this.concessionsPrice = concessionsPrice;
    }

    public BigDecimal getConcessionsPrice() 
    {
        return concessionsPrice;
    }
    public void setRealPrice(BigDecimal realPrice) 
    {
        this.realPrice = realPrice;
    }

    public BigDecimal getRealPrice() 
    {
        return realPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("tableId", getTableId())
            .append("storeId", getStoreId())
            .append("sikgaekId", getSikgaekId())
            .append("settlementId", getSettlementId())
            .append("couponRecordId", getCouponRecordId())
            .append("orderPrice", getOrderPrice())
            .append("createTime", getCreateTime())
            .append("payTime", getPayTime())
            .append("isPay", getIsPay())
            .append("payType", getPayType())
            .append("concessionsPrice", getConcessionsPrice())
            .append("realPrice", getRealPrice())
            .toString();
    }
}
